﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AppEnvironment.Lib;
using System.Collections.Specialized;
using AppEnvironment.Web;

namespace AppEnvironment.Lib
{
    public abstract class PresenterWithParams<TParamType> : Presenter
        where TParamType : NavParam, new()
    {

        private TParamType mParams;
        protected TParamType Params
        {
            get {
                if (mParams == null)
                {
                    Navigator nav = App.New<Navigator>();
                    mParams = nav.MakeNavParams<TParamType>();
                }
                return mParams; }
            set
            {
                mParams = value;
            }
        }

    }
}
